package com.css.dzj.zfjg.modules.statisticsb.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 信用评估结果统计-B
 * @author liyuan
 */
@Entity
@Table(name = "JG_XYJG_XYPGJGTJ_B", schema = "DZJZFJG", catalog = "")
public class Statisticsb {
    private String id;
    // 省级
    private String provincial;
    // 国办信用分级标准 A->E 类企业比例
    private String nationalStandardAProportion;
    private String nationalStandardBProportion;
    private String nationalStandardCProportion;
    private String nationalStandardDProportion;
    private String nationalStandardEProportion;

    @Id
    @Column(name = "Id")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "Provincial")
    public String getProvincial() {
        return provincial;
    }

    public void setProvincial(String provincial) {
        this.provincial = provincial;
    }

    @Basic
    @Column(name = "National_Standard_A_Proportion")
    public String getNationalStandardAProportion() {
        return nationalStandardAProportion;
    }

    public void setNationalStandardAProportion(String nationalStandardAProportion) {
        this.nationalStandardAProportion = nationalStandardAProportion;
    }

    @Basic
    @Column(name = "National_Standard_B_Proportion")
    public String getNationalStandardBProportion() {
        return nationalStandardBProportion;
    }

    public void setNationalStandardBProportion(String nationalStandardBProportion) {
        this.nationalStandardBProportion = nationalStandardBProportion;
    }

    @Basic
    @Column(name = "National_Standard_C_Proportion")
    public String getNationalStandardCProportion() {
        return nationalStandardCProportion;
    }

    public void setNationalStandardCProportion(String nationalStandardCProportion) {
        this.nationalStandardCProportion = nationalStandardCProportion;
    }

    @Basic
    @Column(name = "National_Standard_D_Proportion")
    public String getNationalStandardDProportion() {
        return nationalStandardDProportion;
    }

    public void setNationalStandardDProportion(String nationalStandardDProportion) {
        this.nationalStandardDProportion = nationalStandardDProportion;
    }

    @Basic
    @Column(name = "National_Standard_E_Proportion")
    public String getNationalStandardEProportion() {
        return nationalStandardEProportion;
    }

    public void setNationalStandardEProportion(String nationalStandardEProportion) {
        this.nationalStandardEProportion = nationalStandardEProportion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Statisticsb that = (Statisticsb) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(provincial, that.provincial) &&
                Objects.equals(nationalStandardAProportion, that.nationalStandardAProportion) &&
                Objects.equals(nationalStandardBProportion, that.nationalStandardBProportion) &&
                Objects.equals(nationalStandardCProportion, that.nationalStandardCProportion) &&
                Objects.equals(nationalStandardDProportion, that.nationalStandardDProportion) &&
                Objects.equals(nationalStandardEProportion, that.nationalStandardEProportion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, provincial, nationalStandardAProportion, nationalStandardBProportion, nationalStandardCProportion, nationalStandardDProportion, nationalStandardEProportion);
    }
}
